import request from '@/utils/request'

// 查询摄像头通道实例列表
export function listVideo_channels(query) {
  return request({
    url: '/business/video_channels/list',
    method: 'get',
    params: query
  })
}

// 查询摄像头通道实例详细
export function getVideo_channels(id) {
  return request({
    url: '/business/video_channels/' + id,
    method: 'get'
  })
}

// 新增摄像头通道实例
export function addVideo_channels(data) {
  return request({
    url: '/business/video_channels',
    method: 'post',
    data: data
  })
}

// 修改摄像头通道实例
export function updateVideo_channels(data) {
  return request({
    url: '/business/video_channels',
    method: 'put',
    data: data
  })
}

// 删除摄像头通道实例
export function delVideo_channels(id) {
  return request({
    url: '/business/video_channels/' + id,
    method: 'delete'
  })
}

// 导出摄像头通道实例
export function exportVideo_channels(query) {
  return request({
    url: '/business/video_channels/export',
    method: 'get',
    params: query
  })
}